package com.onesports.intelligent.k12.polarlight.domain.dto.attendance;

import com.onesports.intelligent.k12.polarlight.domain.vo.student.StudentAttendanceVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author Wsy
 **/
@Data
@ApiModel("考勤DTO")
public class AttendanceDTO {


    @ApiModelProperty(value = "时段明细id",required = true)
    @NotBlank(message = "时段明细id不可为空")
    private String id;

    @ApiModelProperty(value = "考勤状态  1：教练签到 2：学员请假 3：学员未到", required = true)
    @NotBlank(message = "请选择考勤状态")
    private String attendanceStatus;


    @ApiModelProperty(value = "班级id",required = true)
    @NotBlank(message = "班级id不可为空")
    private String classId;

    @ApiModelProperty(value = "考勤的学员",required = true)
    @NotEmpty(message = "请选择学员")
    @Valid
    private List<StudentAttendanceVO> attendances;
}
